import { defineStore } from 'pinia';

export const myStore = defineStore({
    id: 'my', // id必填，且需要唯一
    state: () => {
        return {
            nickName: '大白菜'
        };
    },
    actions: {
        updateName(name: string) {
            this.nickName = name;
        }
    },
    getters: {}
});
